//
//  PopSheetView.m
//  XKStudyDemo
//
//  Created by xukai on 2017/11/30.
//  Copyright © 2017年 xukai. All rights reserved.
//

#import "PopSheetView.h"

@interface PopSheetView ()<UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) UITableView *tableView;
@property (nonatomic, strong) NSArray *datas;
@property (nonatomic, strong) selectBlock callBlock;

@end

@implementation PopSheetView

+(void) showListWithItems:(NSArray *) items didSelectRowBlock:(selectBlock) callBlock
{
    
}

-(instancetype) initWithFrame:(CGRect)frame items:(NSArray *) items didSelectRowBlock:(selectBlock) callBlock
{
    if(self = [super initWithFrame:frame])
    {
        _datas = items;
        _callBlock = callBlock;
        self.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.3];
        _tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDHT, 0)];
        _tableView.delegate = self;
        _tableView.dataSource = self;
        _tableView.backgroundColor = [UIColor whiteColor];
        _tableView.showsVerticalScrollIndicator = NO;

    }
    return self;
}

@end
